import request from "@/utils/request";

// 查询楼宇信息列表
export function listBuilding(query) {
  return request({
    url: "/system/building/list",
    method: "post",
    data: query,
  });
}

// 查询楼宇信息详细
export function getBuilding(id) {
  return request({
    url: "/system/building/detail/" + id,
    method: "get",
  });
}

// 新增楼宇信息
export function addBuilding(data) {
  return request({
    url: "/system/building/add",
    method: "post",
    data: data,
  });
}

// 修改楼宇信息
export function updateBuilding(data) {
  return request({
    url: "/system/building/edit",
    method: "post",
    data: data,
  });
}

// 删除楼宇信息
export function delBuilding(id) {
  return request({
    url: "/system/building/remove",
    method: "post",
    data: id,
  });
}
